package testString;

public class Doctor {
    private String name;
    private Character sex;
    private String department;

    public Doctor() {
    }

    public Doctor(String name, Character sex, String department) {
        this.name = name;
        this.sex = sex;
        this.department = department;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Character getSex() {
        return sex;
    }

    public void setSex(Character sex) {
        this.sex = sex;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    @Override
    public String toString() {
        return "Doctor{" +
                "name='" + name + '\'' +
                ", sex=" + sex +
                ", department='" + department + '\'' +
                '}';
    }
}
